@foreach (['danger', 'warning', 'success', 'info'] as $msg)
  @if(session()->has($msg))
    <div class="flash-message">
      <div class="alert alert-{{ $msg }} alert-dismissable">
      	<button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">&times;</span> </button>
      	<h3 class="text-success"><i class="fa fa-check-circle"></i>{{ $msg }}</h3>
        {{ session()->get($msg) }}
      </div>
    </div>
  @endif
@endforeach